package com.zhuqi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuqi.entity.Course;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * @author : ZhuQi
 * @version : 时间:2022/2/21 14:02 版本:
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {


    /**
     * 查询所有数据
     * @return
     */
    List<Course> selectAllData();

    /**
     * 查询所有数据并排序
     * @return
     */
    List<Course> selectAllDataAndOrderByDesc();


    HashMap<String,Object> selectOtherTable();
}
